package com.tcat.user.pojo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@ApiModel(description = "用户")
@Data
@Table(name="tb_users")
public class Users {
    @Id
    @KeySql(useGeneratedKeys = true)
    @Column(name="user_id")
    private Long id;
    @Column(name="username")
    private String name;
    @Column(name="password")
    private String userPwd;
    @Column(name="password_salt")
    private String pwdSalt;

    public Users(Long id, String name, String userPwd, String pwdSalt) {
        this.id = id;
        this.name = name;
        this.userPwd = userPwd;
        this.pwdSalt = pwdSalt;
    }
}
